// swift-tools-version:5.0
import PackageDescription

let package = Package(
    name: "MyKituraApp",
    dependencies: [
      .package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.7.0")),
      .package(url: "https://github.com/IBM-Swift/HeliumLogger.git", from: "1.7.1"),
      .package(url: "https://github.com/IBM-Swift/CloudEnvironment.git", from: "9.0.0"),
      .package(url: "https://github.com/RuntimeTools/SwiftMetrics.git", from: "2.0.0"),
      .package(url: "https://github.com/IBM-Swift/Health.git", from: "1.0.0"),
//      .package(url: "https://github.com/IBM-Swift/Kitura-OpenAPI.git", from: "1.2.3")
//      .package(url: "https://github.com/IBM-Swift/Swift-Kuery.git", from: "3.0.1"),
//      .package(url: "https://github.com/IBM-Swift/Swift-Kuery-PostgreSQL.git", from: "2.1.1"),
//      .package(url: "https://github.com/IBM-Swift/SwiftKueryMySQL.git", from: "2.0.2")
        .package(url: "https://github.com/IBM-Swift/Kitura-CouchDB.git", from: "3.1.1")
    ],
    targets: [
      .target(name: "MyKituraApp", dependencies: [ .target(name: "Application"), "Kitura" , "HeliumLogger"]),
      .target(name: "Application", dependencies: [ "Kitura",
                                                   "CloudEnvironment",
                                                   "SwiftMetrics",
                                                   "Health",
                                                   "CouchDB"
//                                                   "SwiftKuery",
//                                                   "SwiftKueryPostgreSQL",
//                                                   "SwiftKueryMySQL"
                                                    ]),

      .testTarget(name: "ApplicationTests" , dependencies: [.target(name: "Application"), "Kitura","HeliumLogger" ]),
//      .target(name: "MyKituraApp", dependencies: ["KituraOpenAPI"]),
    ]
)
